package com.feel.mall.common.service;

import com.feel.mall.common.bean.Order;
import com.feel.mall.common.bean.OrderVO;
import com.feel.mall.common.exception.FeelException;

import java.util.List;
import java.util.Map;

/**
 * @Author: 刘永钦
 * @Description:
 */
public interface OrderService {
//    创建订单
    void addInfo(OrderVO order) throws FeelException;
//     查询全部订单（条件查询）
    Object selectAll(Order condition, Integer pageNum, Integer pageSize);
//     通过订单id查询订单
    Order selectById(String  id) throws FeelException;
//     对订单发货链接
    void sendGoods(Order order) throws FeelException;

    Boolean pay(String orderId, String payPassword, Integer userId) throws FeelException;

    List<Map<String, Integer>> getInfoForEcharts();

    Boolean updateInfo(Order order, Integer userId) throws FeelException;
}
